-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite Inset Handling #283
Conversation
navigation/src/main/kotlin/com/imashnake/animite/navigation/NavigationBar.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/imashnake/animite/features/home/HomeScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/imashnake/animite/features/home/HomeScreen.kt
Outdated
Show resolved
Hide resolved
.padding(bottom = searchBarBottomPadding) | ||
.navigationBarsPadding() | ||
.consumeWindowInsets(PaddingValues(bottom = searchBarBottomPadding)) | ||
.imePadding() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't have to change this too much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gonna replace this with https://github.com/uragiristereo/Mikansei/blob/main/core/ui/src/main/java/com/uragiristereo/mikansei/core/ui/extension/PaddingValues.kt in a follow up PR
end = LocalPaddings.current.large | ||
contentPadding = Paddings( | ||
horizontal = LocalPaddings.current.large | ||
) + Paddings( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cringe!
CONTRIBUTING.md
.Previously, we were relying on orientation values to handle some insets. This is NOT correct, and has even led to a few edge cases that weren't handled. I'm rewriting our inset handling to be orientation-agnostic.
Summary of changes:
landscapeCutoutPadding
(very bad)Tested changes:
UI components do not overlap any system bars in any orientation or device configuration (this includes Foldables, and other unique form factors)